Skip to content

ui: use executable template filter for users#3214

Merged
yadvr merged 1 commit intoapache:masterfrom
shapeblue:template-filter-fix
Mar 29, 2019
Merged

ui: use executable template filter for users#3214
yadvr merged 1 commit intoapache:masterfrom
shapeblue:template-filter-fix

Conversation

@yadvr
Copy link
Member

@yadvr yadvr commented Mar 12, 2019

Problem: When reinstalling a VM, the UI only shows featured templates and not all possible list of allowed templates.
Root Cause: The list of templates for reinstall used featured as filter in ‘listTemplates’ API which did not include all available options.
Solution: The issue is fixed by using the executable template filter of the ‘listTemplates’ API to list all
possible templates that a user is allowed to use to deploy a VM.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

This uses the `executable` tempalte filter for fetching templates in
reinstall VM form, otherwise not all allowable templates were being
listed.

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
@yadvr yadvr added this to the 4.13.0.0 milestone Mar 12, 2019
@PaulAngus
Copy link
Member

@blueorangutan test

@blueorangutan
Copy link

@PaulAngus a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@PaulAngus
Copy link
Member

@blueorangutan package

@blueorangutan
Copy link

@PaulAngus a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-2633

Copy link
Contributor

@borisstoyanov borisstoyanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, manually verified it

@yadvr yadvr changed the title ui: use executable template filter for users [WIP DO NOT MERGE] ui: use executable template filter for users Mar 29, 2019
@yadvr yadvr changed the title [WIP DO NOT MERGE] ui: use executable template filter for users ui: use executable template filter for users Mar 29, 2019
@yadvr yadvr merged commit 4985e57 into apache:master Mar 29, 2019
@borisstoyanov
Copy link
Contributor

@rhtyd can you please confirm this has been merged in master (4.13) as well ?

@yadvr
Copy link
Member Author

yadvr commented Apr 16, 2019

Yes @borisstoyanov

pbankonier pushed a commit to pbankonier/cloudstack that referenced this pull request Apr 24, 2019
Problem: When reinstalling a VM, the UI only shows featured templates and not all possible list of allowed templates.
Root Cause: The list of templates for reinstall used featured as filter in ‘listTemplates’ API which did not include all available options.
Solution: The issue is fixed by using the executable template filter of the ‘listTemplates’ API to list all
possible templates that a user is allowed to use to deploy a VM.
@DagSonsteboSB
Copy link

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants